package com.shop.cereshop.business.dl.logic.controller;

import com.shop.cereshop.business.dl.logic.service.UserPointsService;
import com.shop.cereshop.business.dl.logic.utils.ResultInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: dlshop
 * 描述：
 * @author: 我好帅
 * @create: 2021-07-21 10:08
 **/
@RestController
@RequestMapping("/business")
public class UserPointsController {
    @Autowired
    private UserPointsService userPointsService;


    //w获取积分明细
    @PostMapping("/pointsDetails")
    public ResultInfo pointsDetails(String phone,Integer page, Integer row){
        return userPointsService.getAll(phone,page,row);
    }

}
